home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol E-12 / Vol E-12.iso / games / barbie / barbi001.swf / scripts / frame_3 / PlaceObject2_58_114 / CLIPACTIONRECORD onClipEvent(enterFrame)_2.as next >
Text File  |  2012-05-21  |  751b  |  39 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.fadeout == 1)
  3.    {
  4.       _root.life = 1;
  5.       if(countdown >= 0)
  6.       {
  7.          setProperty(_root.man, _alpha, countdown);
  8.          countdown -= 20;
  9.       }
  10.       else
  11.       {
  12.          _root.life = 0;
  13.          _root.fadeout = 0;
  14.          countdown = 100;
  15.          with(_root)
  16.          {
  17.             nextFrame();
  18.          }
  19.       }
  20.    }
  21.    if(_root.fadeout == 2)
  22.    {
  23.       _root.life = 1;
  24.       if(countdown >= 0)
  25.       {
  26.          trace("hello");
  27.          setProperty(_root.man, _alpha, countdown);
  28.          countdown -= 20;
  29.       }
  30.       else
  31.       {
  32.          _root.life = 0;
  33.          _root.fadeout = 0;
  34.          countdown = 100;
  35.          _root.fadein = 2;
  36.       }
  37.    }
  38. }
  39.